package cn.stylefeng.guns.modular.tool.mapper;

import cn.stylefeng.guns.modular.tool.entity.ToolExpressSumTask;
import cn.stylefeng.guns.modular.tool.model.params.ToolExpressSumTaskParam;
import cn.stylefeng.guns.modular.tool.model.result.ToolExpressSumTaskResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 作业统计管理 Mapper 接口
 */
public interface ToolExpressSumTaskMapper extends BaseMapper<ToolExpressSumTask> {

    /**
     * 获取列表
     */
    List<ToolExpressSumTaskResult> customList(@Param("paramCondition") ToolExpressSumTaskParam paramCondition);

    /**
     * 获取map列表
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") ToolExpressSumTaskParam paramCondition);

    /**
     * 获取分页实体列表
     */
    Page<ToolExpressSumTaskResult> customPageList(@Param("page") Page page, @Param("paramCondition") ToolExpressSumTaskParam paramCondition, @Param("condition") String condition);
    
    Page<ToolExpressSumTaskResult> customPageListtj(@Param("page") Page page, @Param("paramCondition") ToolExpressSumTaskParam paramCondition, @Param("condition") String condition, @Param("operateId")Long operateId);
    
    Page<ToolExpressSumTaskResult> customPageListtjnum(@Param("page") Page page, @Param("paramCondition") ToolExpressSumTaskParam paramCondition, @Param("condition") String condition, @Param("operateId")Long operateId);

    Page<ToolExpressSumTaskResult> customPageListd(@Param("page") Page page, @Param("paramCondition") ToolExpressSumTaskParam paramCondition, @Param("condition") String condition);
    /**
     * 获取分页实体列表
     */
    Page<ToolExpressSumTaskResult> findPageSumBySpec(@Param("page") Page page, @Param("paramCondition") ToolExpressSumTaskParam paramCondition, @Param("condition") String condition);
    
    /**
     * 获取分页map列表
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") ToolExpressSumTaskParam paramCondition);

	void deleteByExpressSumId( @Param("paramCondition")ToolExpressSumTaskParam expressSumTaskParam);

	void deleteBySpec(@Param("paramCondition")ToolExpressSumTaskParam expressSumTaskParam);

	List<ToolExpressSumTaskResult> findListBySpec(@Param("paramCondition")ToolExpressSumTaskParam param);

	boolean saveBatchList(@Param("list")List<ToolExpressSumTaskParam> savelist);

}
